﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Data;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Theme_Index_GetNewResource : System.Web.UI.UserControl
{
    PowerCreator.LMS.Web.Course.Resource opResource = new PowerCreator.LMS.Web.Course.Resource();
    protected void Page_Load(object sender, EventArgs e)
    {
        GetNewResource();
    }
    public void GetNewResource()//最新课程资源
    {
        string search = "";
        string orderBy = "ResourceCreatedTime desc";
        DataTable dt = opResource.QueryResource(search, orderBy, 5, 1);
        rptNewResource.DataSource = dt;
        rptNewResource.DataBind();

    }
}